function PickPeopleController() {
    var name_list = [];
    $.ajax({
        url: "get_names",
        type: "GET",
        dataType:"json",
        success: function (data) {
            data.forEach(function (name) {
                var list_one = "<a href='../pages/order-meal.html'><li type='button' class='list-style-3' onclick='SetPeopleName(" + '"' + name.Name + '"' + ")'>" + name.Name + "</li></a>";
                $("ul").append(list_one);
            })
        }
    });
}

function SetPeopleName(name) {
    var people = new People(name);
    people.save()
}